home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
626-637
/
disk_632
/
printfiles
/
english
/
printfiles.doc.english
< prev
next >
Wrap
Text File
|
1992-05-06
|
20KB
|
559 lines
*********************************************************************
* PrintFiles *
* Version 0.9e *
* *
* Copyright © 1992 by K.Klingbeil *
*********************************************************************
Note: If you paid more than 5 $US/DM/£UK for a disk including PrintFiles
your dealer is a thief and you're a fool!
*********************************************************************
DISCLAIMER
The author cannot be held liable for the suitability or accuracy
of this manual and/or the program(s) it describes. Any damage
directly or indirectly caused by the use or misuse of this manual
and/or the program it describes is the sole responsibility of the
user her/him self.
*********************************************************************
*********************************************************************
DISTRIBUTION:
PrintFiles, © Copyright 1992 K.Klingbeil. All rights reserved. This
Program is FREEWARE so no financial donations are required ( but welcome ).
This program may be freely distributed as long as all source code,
documentation and executable remain unchanged and are included with the
distribution. Also no profit is to be made by selling this program.
*********************************************************************
* Contents of this manual *
*********************************************************************
1. Introduction
2. Installation
2.1 Requirements
2.2 Installation
3. Quickstart
4. How to use PrintFiles
4.1. The printer icon
4.2. The control window
4.2.1 open the control window
4.2.2 close the control window
4.2.3 the settings of the control window
4.3. The prefs window
4.3.1 open the prefs window
4.3.2 close the prefs window
4.3.3 the settings of the prefs window
5. The Arexx-Port
5.1. Command summary of the Arexx-Port
6. Starting Printfiles
6.1. Usage from CLI/Shell
6.2. Usage from Workbench
7. Notes
*********************************************************************
* 1. Introduction *
*********************************************************************
PrintFiles is designed to replace the Printfiles-command distributed
with your Workbench disk. Unlike the original printfiles it is more
user-friendly and offers you much more possibilities , e.g. Headlines,
date,time...
The features are:
- Printer Icon on the Workbench.
To print a File simply drag its icon onto the printer icon.
- A print list of unlimited size.
- Files are also inserted into the print list by dragging their
icons into the control window.
- You can print headlines, baselines, date, time, filename,
page numbers and line numbers.
- You can set your printer to draft/lq quality.
- Arexx-Port with 23 commands gives you full control over Printfiles.
- Saves its preferences as Arexx-Scripts
Try it !
*********************************************************************
* 2. Installation *
*********************************************************************
2.1 Requirements
Printfiles runs only under OS 2.04 with system libraries V37+.
Printfiles uses only about 45K memory so that it will run even on
512K Amigas. Harddisk and/or additional memory are not required, but
useful.
2.2 Installation
Printfiles needs no complex installation procedures. Just copy the
program into your c: or WBStartup directory.
If you want to use the Arexx-Port of Printfiles, be sure that the
RexxMaster Process is running before you attempt to run Printfiles.
Printfiles will not work if the Workbench is closed, so be sure that
you start PrintFiles after the LoadWB command.
Note: if you run Printfiles multiple, an Arexx-Port exists only in
the first program.
To start Printfiles automatically at Startup you can:
a. add the line 'PrintFiles' to the File s:user-startup
b. copy Printfiles into the WBStartup Drawer.
In this case you may add the ToolType DONOTWAIT to the
PrintFiles icon.
*********************************************************************
* 3. Quickstart *
*********************************************************************
This chapter gives you an example how to use Printfiles.
Step 1 . Turn your printer on.
Step 2 . Doubleclick the Printfies icon or type
'PrintFiles'[return] into a shell window
Step 3 . Now you have an additional printer icon on the
Workbench
Step 4 . Drag the icon of this .doc File on the Printer icon
and it will be printed.
Step 5 . Open the control window by double-clicking on the
printer icon.
Step 6 . Now You see the control window with the print list in
the center of the window
Step 7 . Drag more icons on the printer icon or into the control
window to insert them into the print list. you can also
insert files by typing the names into the StringGadget under
the list. To select files from a Filerequester click the
Request-Button.
Step 8 . Select some buttons, e.g. Date,Time ...
Step 9 . Click the Print-button and the whole list will be printed.
Step 10. After the print select the quit-button or the Close-Gadget
of the window. A requester will appear.
Step 11. Select the quit-button of the Requester.
*********************************************************************
* 4. How to use Printfiles *
*********************************************************************
The main Element in PrintFiles is the print list. The main operation
in PrintFiles is to insert filenames into this list and print a list.
You can insert names in several ways: At Startup by the commandline or
selected icons, by dragging icons onto the printer icon or into the
control window, by using FileRequster or the Arexx-Port.
4.1 The printer icon
PrintFiles adds a printer icon to the workbench. You can insert
files by dragging icons onto the printer icon.
If the control window is closed, this files are immediately printed.
If the window is open, they are added at the end of the list.
4.2 The control window
This window contains all settings for the printer. It can be opened
or closed as you like and it remembers its position on re-opening.
NOTE: If you use a NTSC-machine check chapter 2.1 !
4.2.1 Opening the control window
The window is normally closed at startup. You can open it
a. at startup (see also chapter 6)
- from CLI/Shell by using option -w.
- from Workbench by using the TOOL TYPE
WINDOW=<left edge><top edge>.
b. at runtime
- by double-clicking on the printer icon.
- by selecting the Item 'Printfiles' in the
Workbench-Tool-Menu.
- by sending the command 'openwindow <left edge><top edge>'
to the Arexx-Port of Printfiles. (see also chapter 5)
4.2.2 Closing the control window
- Double-click on the printer icon
- Select the Item 'Printfiles' in the Workbench-Tool-Menu.
- Send the command 'closewindow' to the Arexx-Port of Printfiles.
(see also chapter 5)
*********************************************************************
* 5. Settings *
*********************************************************************
The setting of the control window are ( top down ):
-Prefs
AREXX : openwindow prefs <LeftEdge><TopEdge>
opens the printer preferences window at <leftedge><topedge>
-about
AREXX : version
Displays a requester containing the version number
-Button date/Time/File
AREXX : date on/off
time on/off
file on/off
CLI : -d -t -n
TOOL TYPE: FLAGS=d FLAGS=t FLAGS=n
If one of these buttons is checked, additional headline with
the requested information is generated.
-Stringgadget headline/footline
AREXX : headline [...] sets headline string
footline [...] sets footline string
TOOL TYPE: headline=[...] footline=[...]
If a string is set, it will be printed on the top/foot of each
page.
-Pagenumbers
AREXX : page on/off
CLI : -p
TOOL TYPE: FLAG=p
If checked, the string *** Page: xxxxx *** will be printed
on the foot of each page. Additionally, at the end of a file
the count of pages of this file is printed.
-LineNumbers
AREXX : line on/off
CLI : -l
TOOL TYPE: FLAGS=l
If checked, each line will have a number.
-CR/LF
AREXX : crlf
CLI : -c
TOOL TYPE: FALGS=c
If checked, an additional linefeed is printed after each line.
-Form Feed
AREXX : ff on/off
CLI : -f
TOOL TYPE: FLAGS=f
If checked, a Form Feed is printed after each file.
-Request
Displays a FileRequester and adds the choosen file to
the list.
-Remove
AREXX : remfile remfile <File>
If you click onto a filename in the list, this file will be
displayed in the stringgadget beneath the remove-button.
If you then click this button, the file is removed from the
list. If the stringgadgets contains no name, the last file
of the list is removed.
-Print
AREXX : print
Begins printing the list. While Printing, this gadget is disabled.
You can perform all other functions like adding files, removing
files and so on. All changes are immediately recognized.
NOTE: It depends on the size of the printer buffer how fast the
changes will appear on the paper !
-Quit (and CloseGadget of the window)
AREXX : quit
If the program is currently printing it will request you to abort
or continue the print.
If the program is not printing it will request you to quit the
program or to close the window (see chapter 4.2.1 and 4.2.2)
NOTE: the Arexx command will not display a requester !
4.3. The Prefs Window
4.3.2 Opening the prefs window
- click the 'Prefs' button in the control window
- send the 'openwindow prefs <Leftedge><TopEdge>' command to
the Arexx-Port.
4.3.3 Closing the prefs window
- click the closegadget of the prefs window
- send the 'closewindow prefs' command to
the Arexx-Port.
4.3.3 Settings of the prefs Window
-button Draft/Lq
AREXX : draft
lq
TOOL TYPE : FLAGS=a
FLAGS=q
CLI : -a -q
Set the print quality to draft or lq
-button 6 lines/inch 8 lines/inch.
AREXX : 6li
6li
TOOL TYPE : FLAGS=6
FLAGS=8
CLI : -6 -8
Set the spacing to 1/6 inch or 1/8 inch.
-button 10cpi/12cpi/15cpi
AREXX : 10cpi
12cpi
15cpi
TOOL TYPE : FLAGS=0
FLAGS=2
FLAGS=5
CLI : -0 -2 -5
Set the pitch to Normal (10cpi) / Elite (12cpi) / condensed (15cpi).
-stringgadget Lines/page
AREXX : lines <number>
TOOL TYPE : LINES=<number>
Print <number> lines on each page.
-stringgadget Left Margin
AREXX : lmargin <number>
TOOL TYPE : LMARGIN=<number>
Set the left margin to column <number>
-stringgadget Right Margin
AREXX : rmargin <number>
TOOL TYPE : RMARGIN=<number>
Set the right margin to column <number>
-button Print
same as Print-button in the control window.
-button Save
AREXX : saveprefs <filename>
Saves the current setting (including print list) as an Arexx-Script.
If no filename is given you will be prompted by a requester.
*********************************************************************
* 5. The Arexx-Port *
*********************************************************************
The Arexx-port of Printfiles is named 'PRINTFILES'
5.1. Command summary
- clear
Returns : nothing
Arguments : none
Clears the print list.
- closewindow <which>
Returns : nothing
Arguments : control // close control window
prefs // close prefs window
Closes the specified window. If the window is currently closed, the
command is ignored.
- crlf <on><off>
Returns : nothing
Arguments : on or off
sets/clears the button CR/LF
- date <on><off>
Returns : nothing
Arguments : on or off
sets/clears the date-button
- draft
Returns : nothing
Arguments : none
Sets the printer to draft mode.
- file <on><off>
Returns : nothing
Arguments : on or off
sets/clears the filename-button.
- ff <on><off>
Returns: none
Arguments : on or off
sets/clears the FormFeed-button.
- insfile <filename>
Returns : nothing
Arguments : filename
Adds the <filename> to the print list
- line <on><off>
Returns : nothing
Arguments : on or off
sets/clears the LineNumber-button.
- lines <zahl>
Returns : nothing
Arguments : number
<number> lines per page will be printed.
- lmargin <number>
Returns : nothing
Arguments : number
Sets the left margin to column #<number>
- lq
Returns : nothing
Arguments : none
Sets the printer to NLQ mode.
- openwindow <which> <left edge> <top edge>
Returns : nothing
Arguments : <which> control //open the control window
prefs //open the prefs window
<left> number
<right> number
Opens the specified window at <left edge> <top edge>.
If the edges doesn't fit on the screen the window
will be adjusted, e.g. 'openwindow control 10000 10000' will
place the window in the right bottom edge of the screen.
If no numbers are given, the window will be opened on
the position where it was closed.
if the window is already open, the command is ignored.
- page <on><off>
Returns : nothing
Arguments : on or off
sets/clears the Pagenumber-button.
- print
Returns : nothing
Arguments : none
Starts printing the list.
- remfile <filename>
Returns: "NOT-IN-LIST" if the filename isn't in the list
"LIST_EMPTY" if the list was empty
"" o.k.
Arguments : filename
Removes the file <filename> from the list.
if no filename is given the last file of the list is removed.
- reset
Returns : nothing
Arguments : none
Clears all buttons, clears the list and sets the printer to
draft mode.
- rmargin <number>
Returns : nothing
Arguments : number
Sets the right margin to column #<number>
- status
Returns : "PRINTING" if Printfiles is currently printing
"WAITING" if PrintFiles isn't printing
Arguments : none
- time <on><off>
Returns: none
Arguments : on or off
sets/clears the time-button.
- headline <string>
Returns : nothing
Arguments : string
Sets the footline string.
- quit
Returns : nothing
Arguments : none
if PrintFiles is currently printing, the print will be aborted.
if PrintFiles isn't printing, the program will be quit.
NOTE: No requesters are displayed !
- version
Returns : Version string (e.g. "Version 0.9e")
Arguments : none
*********************************************************************
* 6. Starting PrintFiles *
*********************************************************************
6.1. Usage from Shell/CLI
printfiles -<flags> file file ....
There is no need to 'run' Printfiles.
The following flags are supported:
-t sets the time-button
-f sets the formfeed-button
-n sets the filename-button
-d sets the date-button
-p sets the pagenumber-button
-l sets the linenumber-button
-c sets the CR/LF-button
-a sets the draft-button (Default)
-q sets the NLQ-button
-w open the control window at startup
-0\
-2 > set the print pitch to 10cpi/12cpi/15cpi
-5/
-6\
-8/ set the spacing to 1/6 inch or 1/8 inch
The flags can be given as single (e.g. printfiles -w -p -f)
or grouped (e.g. printfiles -wpf)
All names without hyphen are treated as filenames and are
added to the print list. If you have specified filenames on
the command line, they will be printed immediately after
startup.
6.2. Usage from Workbench
TOOL TYPES are:
FLAGS= see chapter 6.1.
Unlike to the CLI you should have only one FLAGS-field.
(only the first is evaluated !)
WINDOW=<left edge> <top edge>
Opens the control window (see also chapter 5.1 - openwindow)
LINES=<number>
<number>lines will be print on each page
(see chapter 5.1. - lines)
HEADLINE=<string>
The headline string is set to <string>
(see chapter 5.1. - headline)
FOOTLINE=<string>
The footline string is set to <string>
(see chapter 5.1. - footline)
RMARGIN=<number>
Sets the right margin to column #<number>
(see chapter 5.1. - rmargin)
LMARGIN=<number>
Sets the left margin to column #<number>
(see chapter 5.1. - lmargin)
You can add files to the list by extended selection with the
program icon and file icons.
All selected files are added to the print list and will be
printed immediately after startup.
*********************************************************************
* 7. Notes *
*********************************************************************
PrintFiles is Copyright ©1992 K.Klingbeil, All Rights Reserved. There
are 2 Versions, 0.9d in german and 0.9e in english.
Printfiles was programmed with SAS/C 5.10b on an A2000 with 3MB Memory,
A2091 SCSI-Controller and Quantum LPS40 under OS 2.04 (Kick 37.175).
Bug reports, suggestions, criticism, money, jewellery and other gifts
to
Karlheinz Klingbeil
Elzstr. 42
W-7809 Gutach
Federal Republic of Germany
And now: Have Fun !!!
*********************************************************************